/*
 * YuebaoMagazine.h
 *
 *  Created on: 2011-3-13
 *      Author: 
 */

#ifndef YUEBAOMAGAZINEBOOK_H_
#define YUEBAOMAGAZINEBOOK_H_
#include <e32base.h>
#include <e32cmn.h>
class YuebaoMagazineCata : public CBase
{
public:
    YuebaoMagazineCata( );
    ~YuebaoMagazineCata( );
public:
    int _link;
    HBufC* _name;
};

class YuebaoMagazinePage : public CBase
{
public:
    YuebaoMagazinePage( );
    ~YuebaoMagazinePage( );
public:
    int _id;
    HBufC* _name;
    HBufC* _image;
    HBufC* _text;
};

class YuebaoMagazineBook
{
public:
    YuebaoMagazineBook( );
    ~YuebaoMagazineBook( );
public:
    void ConstructL( );
public:
    RPointerArray< YuebaoMagazineCata > _cates;
    RPointerArray< YuebaoMagazinePage > _pages;
public:
    int PageIndex( int id );
protected:
    bool _isValid;
public:
    bool IsValid( );
public:
    void Load( const TDesC& path );
};

#endif /* YUEBAOMAGAZINEBOOK_H_ */
